[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
== % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[rulecolor=darkgreen] \starttext \startmarginrule[1] \input ward \stopmarginrule \blank \startsidebar[Sidebar] \input zap

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Otared Kavian
rule mechanisms. > MWE: > > == > % ConTeXt ver: 2023.09.26 18:19 LMTX > > \setupmarginrule[1][rulecolor=darkred] > > \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] > \setupsidebar[rulecolor=darkgreen] > >

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
tg-context@ntg.nl>> Date 10/23/2023 6:24:38 PM Subject [NTG-context] sidebar and marginrule not working Dear gang, The appears to be something wrong with the sidebar and marginrule mechanisms. MWE: == % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesid

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hans Hagen
arginrule not working Dear gang, The appears to be something wrong with the sidebar and marginrule mechanisms. MWE: == % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[

[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Hamid,Idris
something wrong with the sidebar and marginrule mechanisms. MWE: == % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[rulecolor=darkgreen] \starttext

[NTG-context] sidebar and marginrule not working

2023-10-23 Thread Hamid,Idris
Dear gang, The appears to be something wrong with the sidebar and marginrule mechanisms. MWE: == % ConTeXt ver: 2023.09.26 18:19 LMTX \setupmarginrule[1][rulecolor=darkred] \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen] \setupsidebar[rulecolor

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread Otared Kavian
t;withcolor linecolor ; >>p := p + stp ; >>exitif arclength( a -- p ) > arclength( a -- b ) ; >>endfor ; >>endgroup ; >>clip currentpic

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread mf
you, Hans. To save this example, I wikified \setupsidebar, \definesidebar and \startsidebar...\stopsidebar. If you do something on alternatives, let me know. Massi ___ If your question is of interest to others as w

[NTG-context] custom zig zag sidebars

2021-04-28 Thread mf
should be clipped not to exceed the last line of the sidebarred text (see the last example): how can that be done? Massi \definesidebar[zigzag1][rulecolor=black,distance=4pt,rulethickness=1pt,alternative=2] \definesidebar[zigzag2][rulecolor=red,distance=4pt,rulethickness=1pt,alternative=3

[NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
r (created with \definesidebar) to them. However, when I surround for example my typing with a textbackground like this \starttextbackground[code] \startCpp ... \stopCpp \stoptextbackground or by putting the textbackground commands in "before=" and "after=" of my typing, then there wi

Re: [NTG-context] Piecewise margin line

2020-11-20 Thread Johann Birnick
ed in horizontal mode, > since you might want to mark in the margin only a part of a paragraph. > In that case the bar would extend from the start of the marked text > until its end. > The default behavior of the bar is extending from the top of the first > line to the bottom of the la

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
could keep > \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] or, better: \definesidebar[Theorem][bottomoffset=...] \defineenumeration[Theorem][before={\startsidebar[Theorem]},after=\stopsi

Re: [NTG-context] Left frame on a block of text

2019-04-21 Thread Otared Kavian
the sidebar to enhance \proclaim like texts. Best regards: OK begin test-sidebar-proclaim.tex %%% \definesidebar[ProclaimSidebar] \setupsidebar[ProclaimSidebar] [rulecolor=darkred, rulethickness=1pt, alternative=2, distance=5mm, % bottomoffset=-7mm

Re: [NTG-context] Using the margin for two purposes

2014-05-19 Thread Hans Hagen
-bar.mkiv, there is nothing that I can see that supports placing marginrules, or the sidebars on which they are built, into the right margin. It looks like a job for Hans. Hm, so you didn't experiment ... \starttext \definesidebar[whow][rulecolor=green,distance=0pt] \definesidebar[oeps][rulecolor

Re: [NTG-context] Using the margin for two purposes

2014-05-19 Thread Matthias Weber
? When I put it into \definesidebar, the sidebar disappears, and when I write \startsidebar[oeps,alternative=1] it reverts to the default left sidebar (albeit dotted). Matthias \setupmargindata [left] [location=right, style=\bfxx] \setupmarginframed[left

Re: [NTG-context] Using the margin for two purposes

2014-05-19 Thread Rik
in the alternative=1 option to get dotted lines? When I put it into \definesidebar, the sidebar disappears, and when I write \startsidebar[oeps,alternative=1] it reverts to the default left sidebar (albeit dotted). Matthias Matthias, You can use distance= in \setupmarginrules to achieve